# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-deprecated
_pkgname=Deprecated
pkgver=1.2.7
pkgrel=2
pkgdesc='Python @deprecated decorator to deprecate old python classes, functions or methods.'
url='https://pypi.org/project/Deprecated/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-wrapt')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c76d4197f96537bb456edc4d47b6ad795317c6535058586e659688a7cb8226c3926b9de3b64545cdf805cd90d6fa620885845629c0d83182b49de08c97f68bc3')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

